package com.zhoutian.dao;

import com.github.pagehelper.Page;
import com.zhoutian.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public void add(Permission permission);
    public Set<Permission> findByRoleId(Integer roleId);
    public Page<Permission> findByCondition(String queryString);
    public Permission findById(Integer id);
    public void edit(Permission permission);
    public void deleteById(Integer id);
    public long findCountByPermissionId(Integer id);
    public List<Permission> findAll();

}
